<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020\7\10 0010
  Time: 15:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
    pageContext.setAttribute("msg","消息1");
    request.setAttribute("msg","消息2");
    session.setAttribute("msg","消息3");
    application.setAttribute("msg","消息4");



    %>
    <hr>
    <h1>访问作用域</h1>
    <%=pageContext.getAttribute("msg")%><br>
    默认取最小域中数据:${msg}<br>
    request:${requestScope.msg}<br>
    session:${sessionScope.msg}<br>
    application:${applicationScope.msg}
    <hr>
    ${user.name}<br>
    ${arr[1]}<br>
    ${list[0]}<br>
    ${map.a1}<br>

</body>
</html>
